package cn.admin.service.impl;

import cn.admin.dao.VipMapper;
import cn.admin.service.VipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Author: 毛苏宇
 * @Description: You can do it!
 * @Date: Create in 9:36 2019/3/26
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class VipServiceImpl implements VipService {

    @Autowired
    private VipMapper vipMapper;

    @Override
    public boolean modifyVipPrice(double vip_price) {
        int i = vipMapper.updateVipPrice(vip_price);
        return i==1?true:false;
    }


}
